//
//  CMListModel.m
//  项目三
//
//  Created by rimi1 on 2016/11/26.
//  Copyright © 2016年 Wangxingqian. All rights reserved.
//

#import "MenuListModel.h"

@implementation MenuListModel

+ (NSArray *)modelArrForArray:(NSArray *)arr {
    NSMutableArray *muArr = [NSMutableArray array];
    
    for (int i = 0; i < arr.count; i++) {
        NSDictionary *dic = arr[i];
        MenuListModel *model = [[MenuListModel alloc] init];
        [model setValuesForKeysWithDictionary:dic];
        
        model.img = [NSString stringWithFormat:@"%@%@", IMAGE_URL, model.img];
        model.menuId = dic[@"id"];
        
        [muArr addObject:model];
    }
    
    return muArr;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

@end










